﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Mate.Dto.Merchant
{
    public class MerchantCategoryTreeModel
    {

        public int id { get; set; }

        /// <summary>
        /// Desc:商户类型所属的上级ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? parentid { get; set; }

        /// <summary>
        /// Desc:商户类型名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string merchantcategoryname { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int sortid { get; set; }

        /// <summary>
        /// Desc:是否启用 1 表示启用，2表示禁用
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? is_valid { get; set; }
        /// <summary>
        /// Desc:是否热门 1是，0否
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? is_hot { get; set; }

        private IList<MerchantCategoryTreeModel> _children;
        /// <summary>
        /// 子类型
        /// </summary>
        public IList<MerchantCategoryTreeModel> children
        {
            get { return _children ?? (_children = new List<MerchantCategoryTreeModel>()); }
            set { _children = value; }
        }

    }
}
